<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
          <title>scalation.activity.Transition</title>
          <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
          
      <link type="text/css" media="screen" rel="stylesheet" href="../../lib/template.css" />
      <script type="text/javascript" src="../../lib/jquery.js"></script>
      <script type="text/javascript" src="../../lib/jquery-ui.js"></script>
      <script type="text/javascript" src="../../lib/template.js"></script>
      <script type="text/javascript" src="../../lib/tools.tooltip.js"></script>
    
        </head>
        <body class="type">
      <div id="definition">
        <img src="../../lib/class_big.png" />
        <p id="owner"><a name="scalation" class="extype" href="../package.html">scalation</a>.<a name="scalation.activity" class="extype" href="package.html">activity</a></p>
        <h1>Transition</h1>
      </div>

      <h4 class="signature" id="signature">
      <span class="kind">class</span>
      <span class="symbol"> 
        <span class="name">Transition</span>
        
        <span class="result"> extends Ordered[<a name="scalation.activity.Transition" class="extype" href="">Transition</a>] with <a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a> with <a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a> with <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></span>
      </span>
      </h4>
      
          <div class="fullcommenttop" id="comment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
This class represents a timed transition.</p></div><div class="toggleContainer block">
          <span class="toggle">Linear Supertypes</span>
          <div class="superTypes hiddenContent"><a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a>, <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a>, <a name="scalation.util.Error" class="extype" href="../util/Error.html">Error</a>, <a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a>, <span name="scala.math.Ordered" class="extype">Ordered</span>[<a name="scalation.activity.Transition" class="extype" href="">Transition</a>], <span name="java.lang.Comparable" class="extype">Comparable</span>[<a name="scalation.activity.Transition" class="extype" href="">Transition</a>], AnyRef, <span name="scala.Any" class="extype">Any</span></div>
        </div></div>
        

      <div id="template">

        <div id="mbrsel">
          <div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
          <div id="order">
                <span class="filtertype">Ordering</span>
                <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
              </div>
          <div id="ancestors">
                <span class="filtertype">Inherited</span>
                <ol><li class="hideall out"><span>Hide All</span></li>
                <li class="showall in"><span>Show all</span></li></ol>
                <ol id="linearization"><li name="scalation.activity.Transition" class="in"><span>Transition</span></li><li name="scalation.util.PQItem" class="in"><span>PQItem</span></li><li name="scalation.util.Identity" class="in"><span>Identity</span></li><li name="scalation.util.Error" class="in"><span>Error</span></li><li name="scalation.activity.PetriNetRules" class="in"><span>PetriNetRules</span></li><li name="scala.math.Ordered" class="in"><span>Ordered</span></li><li name="java.lang.Comparable" class="in"><span>Comparable</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
              </div>
          <div id="visbl">
              <span class="filtertype">Visibility</span>
              <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
            </div>
        </div>

        <div class="members" id="constructors">
              <h3>Instance Constructors</h3>
              <ol><li visbl="pub" name="scalation.activity.Transition#this" data-isabs="false">
      <a id="this:Transition"></a>
      <h4 class="signature">
      <span class="kind">new</span>
      <span class="symbol"> 
        <span class="name">Transition</span>
        
        <span class="params">(<span name="x">x: <span name="scala.Double" class="extype">Double</span></span>, <span name="y">y: <span name="scala.Double" class="extype">Double</span></span>, <span name="firingDist">firingDist: <a name="scalation.random.Variate" class="extype" href="../random/Variate.html">Variate</a></span>, <span name="colors">colors: <span name="scala.Array" class="extype">Array</span>[Color]</span>)</span>
      </span>
      </h4>
      <p class="shortcomment cmt"></p><div class="fullcomment"><div class="comment cmt"></div><dl class="paramcmts block"><dt class="param">x</dt><dd class="cmt"><p>the x-coordinate for this transition</p></dd><dt class="param">y</dt><dd class="cmt"><p>the y-coordinate for this transition</p></dd><dt class="param">firingDist</dt><dd class="cmt"><p>the random variate for the firing distribution</p></dd><dt class="param">colors</dt><dd class="cmt"><p>the colors of the tokens (needed for firing rules)
</p></dd></dl></div>
    </li></ol>
            </div>

        
        
        

        <div class="values members" id="values">
              <h3>Value Members</h3>
              <ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
      <a id="!=(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
      <a id="!=(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">!=</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
      <a id="##():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">##</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scala.math.Ordered#&lt;" data-isabs="false">
      <a id="&lt;(Transition):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">&lt;</span>
        
        <span class="params">(<span name="that">that: <a name="scalation.activity.Transition" class="extype" href="">Transition</a></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Ordered</dd></dl></div>
    </li><li visbl="pub" name="scala.math.Ordered#&lt;=" data-isabs="false">
      <a id="&lt;=(Transition):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">&lt;=</span>
        
        <span class="params">(<span name="that">that: <a name="scalation.activity.Transition" class="extype" href="">Transition</a></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Ordered</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
      <a id="==(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.Any#==" data-isabs="false">
      <a id="==(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">==</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scala.math.Ordered#&gt;" data-isabs="false">
      <a id="&gt;(Transition):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">&gt;</span>
        
        <span class="params">(<span name="that">that: <a name="scalation.activity.Transition" class="extype" href="">Transition</a></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Ordered</dd></dl></div>
    </li><li visbl="pub" name="scala.math.Ordered#&gt;=" data-isabs="false">
      <a id="&gt;=(Transition):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">&gt;=</span>
        
        <span class="params">(<span name="that">that: <a name="scalation.activity.Transition" class="extype" href="">Transition</a></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Ordered</dd></dl></div>
    </li><li visbl="pub" name="scalation.util.PQItem#actTime" data-isabs="false">
      <a id="actTime:Double"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">actTime</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">The activation time for the item in the time-ordered priority queue
</p><div class="fullcomment"><div class="comment cmt"><p>The activation time for the item in the time-ordered priority queue
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#addFluids" data-isabs="false">
      <a id="addFluids(VectorD):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">addFluids</span>
        
        <span class="params">(<span name="_fluids">_fluids: VectorD</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Add fluids to this transition.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Add fluids to this transition.</p></div><dl class="paramcmts block"><dt class="param">_fluids</dt><dd class="cmt"><p>the fluid vector to add
</p></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#addTokens" data-isabs="false">
      <a id="addTokens(VectorI):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">addTokens</span>
        
        <span class="params">(<span name="_tokens">_tokens: VectorI</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Add tokens to this transition.</p>
    </li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
      <a id="asInstanceOf[T0]:T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">asInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.PetriNetRules#calcFiringDelay" data-isabs="false">
      <a id="calcFiringDelay(Variate,VectorD,VectorI,VectorD,VectorD):Double"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">calcFiringDelay</span>
        
        <span class="params">(<span name="v">v: <a name="scalation.random.Variate" class="extype" href="../random/Variate.html">Variate</a></span>, <span name="w_t">w_t: VectorD</span>, <span name="t">t: VectorI</span>, <span name="w_f">w_f: VectorD</span>, <span name="f">f: VectorD</span>)</span><span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Function to compute the delay in firing a transition.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Function to compute the delay in firing a transition.
The base time is given by a random variate.
This is adjusted by weight vectors multiplying the number of
aggregate tokens and the aggreagate amount of fluids summed over
all input places: delay = v + w_t * t + w_f * f.</p></div><dl class="paramcmts block"><dt class="param">v</dt><dd class="cmt"><p>the random variate used to compute base firing time</p></dd><dt class="param">w_t</dt><dd class="cmt"><p>the weight for the token vector</p></dd><dt class="param">t</dt><dd class="cmt"><p>the aggregate token vector (summed over all input places)</p></dd><dt class="param">w_f</dt><dd class="cmt"><p>the weight for the fluid vector</p></dd><dt class="param">f</dt><dd class="cmt"><p>the aggregate fluid level vector (summed over all input places)
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#checkGuard" data-isabs="false">
      <a id="checkGuard:Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">checkGuard</span>
        
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Check the incoming arcs from discrete place for enough tokens of the
right colors and the incoming arcs from continuous places for enough
fluid of the right colors.</p>
    </li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
      <a id="clone():AnyRef"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">clone</span>
        
        <span class="params">()</span><span class="result">: AnyRef</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#compare" data-isabs="false">
      <a id="compare(Transition):Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">compare</span>
        
        <span class="params">(<span name="tr2">tr2: <a name="scalation.activity.Transition" class="extype" href="">Transition</a></span>)</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compare this transition to tr2 based on firing time.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compare this transition to tr2 based on firing time.</p></div><dl class="paramcmts block"><dt class="param">tr2</dt><dd class="cmt"><p>the other transition
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.Transition" class="extype" href="">Transition</a> → Ordered</dd></dl></div>
    </li><li visbl="pub" name="scalation.util.PQItem#compare" data-isabs="false">
      <a id="compare(PQItem):Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">compare</span>
        
        <span class="params">(<span name="other">other: <a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a></span>)</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compare two items (PQItems) based on their actTime.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compare two items (PQItems) based on their actTime.</p></div><dl class="paramcmts block"><dt class="param">other</dt><dd class="cmt"><p>the other item to compare with this item
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a></dd></dl></div>
    </li><li visbl="pub" name="scala.math.Ordered#compareTo" data-isabs="false">
      <a id="compareTo(Transition):Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">compareTo</span>
        
        <span class="params">(<span name="that">that: <a name="scalation.activity.Transition" class="extype" href="">Transition</a></span>)</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Ordered → Comparable</dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#connect" data-isabs="false">
      <a id="connect(PetriNet,Array[ArcI],Array[ArcD],Array[ArcI],Array[ArcD]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">connect</span>
        
        <span class="params">(<span name="_pnet">_pnet: <a name="scalation.activity.PetriNet" class="extype" href="PetriNet.html">PetriNet</a></span>, <span name="_inI">_inI: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcI" class="extype" href="ArcI.html">ArcI</a>]</span>, <span name="_inD">_inD: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcD" class="extype" href="ArcD.html">ArcD</a>]</span>, <span name="_outI">_outI: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcI" class="extype" href="ArcI.html">ArcI</a>]</span>, <span name="_outD">_outD: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcD" class="extype" href="ArcD.html">ArcD</a>]</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Connect this transition to all the incoming and outgoing arcs as well as
the containing Petri net.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Connect this transition to all the incoming and outgoing arcs as well as
the containing Petri net.</p></div><dl class="paramcmts block"><dt class="param">_pnet</dt><dd class="cmt"><p>the containing Petri net</p></dd><dt class="param">_inI</dt><dd class="cmt"><p>the incoming arcs from discrete/Int places</p></dd><dt class="param">_inD</dt><dd class="cmt"><p>the incoming arcs from continuous/Double places</p></dd><dt class="param">_outI</dt><dd class="cmt"><p>the outgoing arcs to discrete/Int places</p></dd><dt class="param">_outD</dt><dd class="cmt"><p>the outgoing arcs to continuous/Double places
</p></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#connect" data-isabs="false">
      <a id="connect(PetriNet,Array[ArcD],Array[ArcD]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">connect</span>
        
        <span class="params">(<span name="_pnet">_pnet: <a name="scalation.activity.PetriNet" class="extype" href="PetriNet.html">PetriNet</a></span>, <span name="_in">_in: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcD" class="extype" href="ArcD.html">ArcD</a>]</span>, <span name="_out">_out: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcD" class="extype" href="ArcD.html">ArcD</a>]</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Connect this transition to all the incoming and outgoing continuous arcs
as well as the containing Petri net.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Connect this transition to all the incoming and outgoing continuous arcs
as well as the containing Petri net.</p></div><dl class="paramcmts block"><dt class="param">_pnet</dt><dd class="cmt"><p>the containing Petri net</p></dd><dt class="param">_in</dt><dd class="cmt"><p>the incoming arcs from continuous/Double places</p></dd><dt class="param">_out</dt><dd class="cmt"><p>the outgoing arcs to continuous/Double places
</p></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#connect" data-isabs="false">
      <a id="connect(PetriNet,Array[ArcI],Array[ArcI]):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">connect</span>
        
        <span class="params">(<span name="_pnet">_pnet: <a name="scalation.activity.PetriNet" class="extype" href="PetriNet.html">PetriNet</a></span>, <span name="_in">_in: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcI" class="extype" href="ArcI.html">ArcI</a>]</span>, <span name="_out">_out: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcI" class="extype" href="ArcI.html">ArcI</a>]</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Connect this transition to all the incoming and outgoing discrete arcs
as well as the containing Petri net.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Connect this transition to all the incoming and outgoing discrete arcs
as well as the containing Petri net.</p></div><dl class="paramcmts block"><dt class="param">_pnet</dt><dd class="cmt"><p>the containing Petri net</p></dd><dt class="param">_in</dt><dd class="cmt"><p>the incoming arcs from discrete/Int places</p></dd><dt class="param">_out</dt><dd class="cmt"><p>the outgoing arcs to discrete/Int places
</p></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#cqueue" data-isabs="false">
      <a id="cqueue:SynchronizedQueue[AnimateCommand]"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">cqueue</span>
        
        <span class="result">: <span name="scala.collection.mutable.SynchronizedQueue" class="extype">SynchronizedQueue</span>[<a name="scalation.animation.AnimateCommand" class="extype" href="../animation/AnimateCommand.html">AnimateCommand</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">The animation command queue
</p>
    </li><li visbl="pub" name="scalation.activity.Transition#enable" data-isabs="false">
      <a id="enable():Double"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">enable</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Enable this transition by computing the firing delay.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Enable this transition by computing the firing delay.  Should immediately
place it on the time ordered firing list.  Also, move tokens/fluids from
input places to this transition.
</p></div></div>
    </li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
      <a id="eq(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">eq</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
      <a id="equals(Any):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">equals</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
      <a id="finalize():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">finalize</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#fire" data-isabs="false">
      <a id="fire():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">fire</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Fire this transition by moving the requisite number and color of tokens
from this transition to each outgoing discrete place and the requisite
amount and color of fluid to each outgoing continuous place.</p>
    </li><li visbl="pub" name="scalation.activity.Transition#firingDelay" data-isabs="false">
      <a id="firingDelay:Double"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">firingDelay</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">The firing delay for this transition
</p>
    </li><li visbl="pub" name="scalation.util.Error#flaw" data-isabs="false">
      <a id="flaw(String,String):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">flaw</span>
        
        <span class="params">(<span name="method">method: String</span>, <span name="message">message: String</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Show the flaw by printing the error message.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Show the flaw by printing the error message.</p></div><dl class="paramcmts block"><dt class="param">method</dt><dd class="cmt"><p>the method where the error occured</p></dd><dt class="param">message</dt><dd class="cmt"><p>the error message
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Error" class="extype" href="../util/Error.html">Error</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.PetriNetRules#fluidFlow" data-isabs="false">
      <a id="fluidFlow(VectorD,Array[Derivative],Double,Double):VectorD"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">fluidFlow</span>
        
        <span class="params">(<span name="f">f: VectorD</span>, <span name="derv">derv: <span name="scala.Array" class="extype">Array</span>[Derivative]</span>, <span name="t0">t0: <span name="scala.Double" class="extype">Double</span></span>, <span name="d">d: <span name="scala.Double" class="extype">Double</span></span>)</span><span class="result">: VectorD</span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compute the amount of fluid to flow over an arc according to the
system of first-order Ordinary Differential Equation (ODE's):
&quot;integral derv from t0 to t&quot;.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compute the amount of fluid to flow over an arc according to the
system of first-order Ordinary Differential Equation (ODE's):
&quot;integral derv from t0 to t&quot;.  Supports ODE base flow models.</p></div><dl class="paramcmts block"><dt class="param">f</dt><dd class="cmt"><p>the fluid vector (amount of fluid per color)</p></dd><dt class="param">derv</dt><dd class="cmt"><p>the array of derivative functions</p></dd><dt class="param">t0</dt><dd class="cmt"><p>the current time</p></dd><dt class="param">d</dt><dd class="cmt"><p>the time delay
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.PetriNetRules#fluidFlow" data-isabs="false">
      <a id="fluidFlow(VectorD,VectorD,VectorD,Double):VectorD"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">fluidFlow</span>
        
        <span class="params">(<span name="f">f: VectorD</span>, <span name="b">b: VectorD</span>, <span name="r">r: VectorD = <span class="symbol">null</span></span>, <span name="d">d: <span name="scala.Double" class="extype">Double</span> = <span class="symbol">0</span></span>)</span><span class="result">: VectorD</span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compute the amount of fluid to flow over an arc according to the
vector expression: b + r * (f-b) * d.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compute the amount of fluid to flow over an arc according to the
vector expression: b + r * (f-b) * d.  If r is 0, returns b.
Supports linear (w.r.t. time delay) and constant (d == 0) flow models.</p></div><dl class="paramcmts block"><dt class="param">f</dt><dd class="cmt"><p>the fluid vector (amount of fluid per color)</p></dd><dt class="param">b</dt><dd class="cmt"><p>the constant vector for base fluid flow</p></dd><dt class="param">r</dt><dd class="cmt"><p>the rate vector (amounts of fluids per unit time)</p></dd><dt class="param">d</dt><dd class="cmt"><p>the time delay
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#fluids" data-isabs="false">
      <a id="fluids:VectorD"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">fluids</span>
        
        <span class="result">: VectorD</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Fluid vector for transition
</p>
    </li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
      <a id="getClass():java.lang.Class[_]"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">getClass</span>
        
        <span class="params">()</span><span class="result">: java.lang.Class[_]</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
      <a id="hashCode():Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">hashCode</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#id" data-isabs="false">
      <a id="id:Int"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">id</span>
        
        <span class="result">: <span name="scala.Int" class="extype">Int</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Get the id (unique identifier).</p><div class="fullcomment"><div class="comment cmt"><p>Get the id (unique identifier).
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#inD" data-isabs="false">
      <a id="inD:Array[ArcD]"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">inD</span>
        
        <span class="result">: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcD" class="extype" href="ArcD.html">ArcD</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Arcs incoming from continuous places
</p>
    </li><li visbl="pub" name="scalation.activity.Transition#inI" data-isabs="false">
      <a id="inI:Array[ArcI]"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">inI</span>
        
        <span class="result">: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcI" class="extype" href="ArcI.html">ArcI</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Arcs incoming from discrete places
</p>
    </li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
      <a id="isInstanceOf[T0]:Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">isInstanceOf</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#locked" data-isabs="false">
      <a id="locked:Boolean"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">locked</span>
        
        <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">A transition is locked from the time it is enabled until it fires
</p>
    </li><li visbl="pub" name="scalation.util.Identity#me" data-isabs="false">
      <a id="me:String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">me</span>
        
        <span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Return the full identity.</p><div class="fullcomment"><div class="comment cmt"><p>Return the full identity.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#name" data-isabs="false">
      <a id="name:String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">name</span>
        
        <span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Get the name.</p><div class="fullcomment"><div class="comment cmt"><p>Get the name.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
      <a id="ne(AnyRef):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">ne</span>
        
        <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
      <a id="notify():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">notify</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
      <a id="notifyAll():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">notifyAll</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#outD" data-isabs="false">
      <a id="outD:Array[ArcD]"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">outD</span>
        
        <span class="result">: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcD" class="extype" href="ArcD.html">ArcD</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Arcs outgoing to continuous places
</p>
    </li><li visbl="pub" name="scalation.activity.Transition#outI" data-isabs="false">
      <a id="outI:Array[ArcI]"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">outI</span>
        
        <span class="result">: <span name="scala.Array" class="extype">Array</span>[<a name="scalation.activity.ArcI" class="extype" href="ArcI.html">ArcI</a>]</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Arcs outgoing to discrete places
</p>
    </li><li visbl="pub" name="scalation.activity.Transition#pnet" data-isabs="false">
      <a id="pnet:PetriNet"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">pnet</span>
        
        <span class="result">: <a name="scalation.activity.PetriNet" class="extype" href="PetriNet.html">PetriNet</a></span>
      </span>
      </h4>
      <p class="shortcomment cmt">The containing Petri net
</p>
    </li><li visbl="pub" name="scalation.util.Identity#setName" data-isabs="false">
      <a id="setName(String):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">setName</span>
        
        <span class="params">(<span name="label">label: String</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Set the name.</p><div class="fullcomment"><div class="comment cmt"><p>Set the name.</p></div><dl class="paramcmts block"><dt class="param">label</dt><dd class="cmt"><p>the name to assign
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.util.Identity#simType" data-isabs="false">
      <a id="simType:String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">simType</span>
        
        <span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">Get the type of the simulation object.</p><div class="fullcomment"><div class="comment cmt"><p>Get the type of the simulation object.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
      <a id="synchronized[T0](⇒ T0):T0"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">synchronized</span>
        <span class="tparams">[<span name="T0">T0</span>]</span>
        <span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#takeFluids" data-isabs="false">
      <a id="takeFluids(VectorD):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">takeFluids</span>
        
        <span class="params">(<span name="_fluids">_fluids: VectorD</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Take fluids from this transition.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Take fluids from this transition.</p></div><dl class="paramcmts block"><dt class="param">_fluids</dt><dd class="cmt"><p>the fluid vector to take away
</p></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#takeTokens" data-isabs="false">
      <a id="takeTokens(VectorI):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">takeTokens</span>
        
        <span class="params">(<span name="_tokens">_tokens: VectorI</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Take tokens from this transition.</p>
    </li><li visbl="pub" name="scalation.activity.PetriNetRules#thresholdD" data-isabs="false">
      <a id="thresholdD(VectorD,VectorD):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">thresholdD</span>
        
        <span class="params">(<span name="f">f: VectorD</span>, <span name="b">b: VectorD</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Return whether the vector inequality is true: f &gt;= b.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Return whether the vector inequality is true: f &gt;= b.
The firing threshold should be checked for every incoming arc.
If all return true, the transition should fire.</p></div><dl class="paramcmts block"><dt class="param">f</dt><dd class="cmt"><p>The fluid vector (amount of fluid per color)</p></dd><dt class="param">b</dt><dd class="cmt"><p>The base constant vector
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.PetriNetRules#thresholdI" data-isabs="false">
      <a id="thresholdI(VectorI,VectorI):Boolean"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">thresholdI</span>
        
        <span class="params">(<span name="t">t: VectorI</span>, <span name="b">b: VectorI</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Return whether the vector inequality is true: t &gt;= b.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Return whether the vector inequality is true: t &gt;= b.
The firing threshold should be checked for every incoming arc.
If all return true, the transition should fire.</p></div><dl class="paramcmts block"><dt class="param">t</dt><dd class="cmt"><p>the token vector (number of tokens per color)</p></dd><dt class="param">b</dt><dd class="cmt"><p>the base constant vector
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.util.PQItem#toString" data-isabs="false">
      <a id="toString():String"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">toString</span>
        
        <span class="params">()</span><span class="result">: <span name="java.lang.String" class="extype">String</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Convert the item (PQItem) to a string.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Convert the item (PQItem) to a string.
</p></div><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a> → AnyRef → Any</dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.PetriNetRules#tokenFlow" data-isabs="false">
      <a id="tokenFlow(VectorI,VectorI,VectorI,Double):VectorI"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">tokenFlow</span>
        
        <span class="params">(<span name="t">t: VectorI</span>, <span name="b">b: VectorI</span>, <span name="r">r: VectorI = <span class="symbol">null</span></span>, <span name="d">d: <span name="scala.Double" class="extype">Double</span> = <span class="symbol">0</span></span>)</span><span class="result">: VectorI</span>
      </span>
      </h4>
      <p class="shortcomment cmt">:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compute the number of tokens to flow over an arc according to the
vector expression: b + r * (t-b) * d.</p><div class="fullcomment"><div class="comment cmt"><p>:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Compute the number of tokens to flow over an arc according to the
vector expression: b + r * (t-b) * d.  If d is 0, returns b.
Supports linear (w.r.t. time delay) and constant (d == 0) flow models.</p></div><dl class="paramcmts block"><dt class="param">t</dt><dd class="cmt"><p>the token vector (number of tokens per color)</p></dd><dt class="param">b</dt><dd class="cmt"><p>the constant vector for base token flow</p></dd><dt class="param">r</dt><dd class="cmt"><p>the rate vector (number of tokens per unit time)</p></dd><dt class="param">d</dt><dd class="cmt"><p>the time delay
</p></dd></dl><dl class="attributes block"> <dt>Definition Classes</dt><dd><a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#tokens" data-isabs="false">
      <a id="tokens:VectorI"></a>
      <h4 class="signature">
      <span class="kind">var</span>
      <span class="symbol"> 
        <span class="name">tokens</span>
        
        <span class="result">: VectorI</span>
      </span>
      </h4>
      <p class="shortcomment cmt">Token vector for transition
</p>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait():Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">wait</span>
        
        <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long,Int):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
      <a id="wait(Long):Unit"></a>
      <h4 class="signature">
      <span class="kind">def</span>
      <span class="symbol"> 
        <span class="name">wait</span>
        
        <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
      </span>
      </h4>
      <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
                <span class="name">@throws</span><span class="args">()</span>
              
        </dd></dl></div>
    </li><li visbl="pub" name="scalation.activity.Transition#x" data-isabs="false">
      <a id="x:Double"></a>
      <h4 class="signature">
      <span class="kind">val</span>
      <span class="symbol"> 
        <span class="name">x</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">the x-coordinate for this transition</p>
    </li><li visbl="pub" name="scalation.activity.Transition#y" data-isabs="false">
      <a id="y:Double"></a>
      <h4 class="signature">
      <span class="kind">val</span>
      <span class="symbol"> 
        <span class="name">y</span>
        
        <span class="result">: <span name="scala.Double" class="extype">Double</span></span>
      </span>
      </h4>
      <p class="shortcomment cmt">the y-coordinate for this transition</p>
    </li></ol>
            </div>

        <div name="scalation.util.PQItem" class="parent">
              <h3>Inherited from <a name="scalation.util.PQItem" class="extype" href="../util/PQItem.html">PQItem</a></h3>
            </div><div name="scalation.util.Identity" class="parent">
              <h3>Inherited from <a name="scalation.util.Identity" class="extype" href="../util/Identity.html">Identity</a></h3>
            </div><div name="scalation.util.Error" class="parent">
              <h3>Inherited from <a name="scalation.util.Error" class="extype" href="../util/Error.html">Error</a></h3>
            </div><div name="scalation.activity.PetriNetRules" class="parent">
              <h3>Inherited from <a name="scalation.activity.PetriNetRules" class="extype" href="PetriNetRules.html">PetriNetRules</a></h3>
            </div><div name="scala.math.Ordered" class="parent">
              <h3>Inherited from <span name="scala.math.Ordered" class="extype">Ordered</span>[<a name="scalation.activity.Transition" class="extype" href="">Transition</a>]</h3>
            </div><div name="java.lang.Comparable" class="parent">
              <h3>Inherited from <span name="java.lang.Comparable" class="extype">Comparable</span>[<a name="scalation.activity.Transition" class="extype" href="">Transition</a>]</h3>
            </div><div name="scala.AnyRef" class="parent">
              <h3>Inherited from AnyRef</h3>
            </div><div name="scala.Any" class="parent">
              <h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
            </div>

      </div>
      
      <div id="tooltip"></div>
      
    </body>
      </html>